/* typesize.c -- 查看数据类型所用字节数 */

#include <stdio.h>

int main(void)
{

  printf("int: %zd bytes\n", sizeof(int));
  printf("short: %zd bytes\n", sizeof(short));
  printf("long: %zd bytes\n", sizeof(long));
  printf("long long: %zd bytes\n", sizeof(long long));
  printf("unsigned: %zd bytes\n", sizeof(unsigned));
  printf("float: %zd bytes\n", sizeof(float));
  printf("double: %zd bytes\n", sizeof(double));
  printf("long double: %zd bytes\n", sizeof(long double));
  printf("char: %zd bytes\n", sizeof(char));
  printf("_Bool: %zd bytes\n", sizeof(_Bool));

  return 0;
}